#include "ffrt_inner.h"
#include "ffrt.h"
#include <iostream>

using namespace std;

void test() {
        int i = 0;
	ffrt::submit([&]() {i = 2;}, {}, {&i}, ffrt::task_attr().name("DnsPxyPacket"));
	ffrt::wait();
	cout << "i = " << i << endl;


	cout << "i = " << i << endl;
}

int main() {
	test();
return 0;	
}
